<include file="public:header" />
<!--商品列表-->
<div class="pad_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="m" value="admin" />
                    <input type="hidden" name="c" value="Share" />
                    <input type="hidden" name="a" value="check" />
                    &nbsp;订单号 :
                    <input name="orderid" type="text" class="input-text" size="25" value="{$orderid}" />
                    <input type="submit" name="search" class="btn" value="搜索" />
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>

 <div class="J_tablelist table_list" data-acturi="{:U('Items/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="20"><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th width="50" align="center">订单号</th>
                <th width="50" ><span data-tdtype="order_by" data-field="status">状态</span></th>
                <th width="60"><span data-tdtype="order_by" data-field="pingfen">评分(最大五个)</span></th>
                <th width="60">用户名</th>
                <th width="70"><span data-tdtype="order_by" data-field="price">价格(元)</span></th>
				<th width="70"><span data-tdtype="order_by" data-field="praise">点赞数</span></th>
				<th width="30"><span data-tdtype="order_by" data-field="inventory">内容</span></th>
				<th width="70"><span data-tdtype="order_by" data-field="realname">奖励积分</span></th>
				<th width="70"><span data-tdtype="order_by" data-field="mobile">时间</span></th>
                <th width="120">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="center">{$val.orderid}</td>
                <td align="center" class="red"><b><if condition="$val['status'] eq 0">待审核<elseif condition="$val['status'] eq 1"/>已审核<else/>已拒绝</if></b></td>
                <td align="center">{$val.pingfen}</td>
                <td align="center">{$val.username}</td>
                <td align="center" class="red">{$val.price}</td>
                <td align="center" class="red">{$val.praise}</td>
				<td align="center">{$val.content}</td>
				<td align="center">{$val.score}</td> 
				<td align="center">{$val.add_time|frienddate}</td> 
                <td align="center"><a href="javascript:void(0);" class="J_confirmurl" data-uri="{:u('Share/delete', array('id'=>$val['id']))}" data-acttype="ajax" data-msg="{:sprintf(L('confirm_delete_one'),$val['orderid'])}">{:L('delete')}</a> | <a class="showdialog" href="javascript:check({$val.id});" data-uri="{:U('Share/getcheck',array('id'=>$val['id']))}" data-title="审核管理" data-id="add" data-width="500" data-height="180">审核意见</a></td>
            </tr>
            </volist>
    	</tbody>
    </table>
    </div>

    <div class="btn_wrap_fixed">
        <label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn btn_submit" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('Share/do_check')}" data-name="id" data-msg="{:L('confirm_check')}" value="{:L('check')}" />
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('Share/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

</div>
<include file="public:footer" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script src="__STATIC__/js/jquery/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<script>
var chcek_url = "{:U('Share/getcheck')}";

$('.J_preview').preview(); //查看大图
	function check(id){
		$.getJSON(chcek_url, {id:id}, function(result){
            if(result.status == 1){
                $.dialog({id:'check_form', title:result.msg, content:result.data, padding:'', lock:true});
            }else{
                $.itaoke.tip({content:result.msg, icon:'alert'});
            }
        });
    }
</script>
</body>
</html>